/*
 * @Author: 谢陈洁
 * @Date: 2025-07-07 13:36:41
 * @LastEditors: 谢陈洁
 * @LastEditTime: 2025-07-23 16:08:58
 * @Description: file content
 */
import { post, upload } from '@/services/request/http';
// 分类列表
export const fetchLinkCategory = (data?:Record<string, any>) : Promise<any> => {
  return post('/link/category/list', data);
}

export const saveLinkCategory = (data:Record<string, any>) : Promise<any> => {
  return post('/link/category/save', data);
}

export const deleteLinkCategory = (id: number | string) : Promise<any> => {
  return post('/link/category/delete', {id});
}

export const fetchLinkList = (data?:Record<string, any>) : Promise<any> => {
  return post('/link/list', data);
}
export const saveLink = (data:FormData) : Promise<any> => {
  return upload('/link/save', data);
}
export const deleteLink = (id: number | string) : Promise<any> => {
  return post('/link/delete', {id});
}

